{{ $id := .id | default (anchorize (plainify .text)) }}
<h{{ .level }} class="{{ .class }} scroll-mt-20" id="{{ $id }}">
  <a class="text-black dark:text-white no-underline hover:underline" href="#{{ $id }}">
    {{ .text }}
  </a>
</h{{ .level }}>
